package controller 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Gaz Williams
	 */
	public class ZeldaModelEvent extends Event 
	{
		public static const POSITION_UPDATED:String = "position updated";
		static public const INVENTORY_UPDATED:String = "inventoryUpdated";
		
		public var data:Object;
		
		public function ZeldaModelEvent(type:String, data:Object, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			
			this.data = data;
		} 
		
		public override function clone():Event 
		{ 
			return new ZeldaModelEvent(type, data, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("ZeldaModelEvent", "type", "data", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}